/**
 * jims
 */
package com.jims.master.modules.base.netHosptial.dao;
import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.base.netHosptial.entity.NetSetting;
import com.jims.master.modules.sys.entity.OrgDict;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/***
 * @author xueyx
 * @version 2017-05-23
 */
@MyBatisDao
public interface NetSettingDao extends CrudDao<NetSetting> {

    public NetSetting getInfoByEntity(NetSetting netSetting);
    /**
     * 查询医生已签约机构
     * @param  doctorBaseinfo
     * @author WangYQ
     * @return
     */
    public List<OrgDict> getSignedOrgDict(@Param("doctorBaseinfo") String doctorBaseinfo);
    /**
     * 查询医生已申请过的机构
     * @param  doctorBaseinfo
     * @author WangYQ
     * @return
     */
    public List<OrgDict> findAppliedHospital(@Param("doctorBaseinfo") String doctorBaseinfo);
    /**
     * 判断是否申请该医院
     * @param  netSetting
     * @author WangYQ
     * @return
     */
    public int judgeAppliedHospital(NetSetting netSetting);

}